package com.yn.pet.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 宠物(人)信息表(Pet)表实体类
 *
 * @author makejava
 * @since 2025-07-09 12:00:48
 */
@Data
@TableName("t_pet")
@EqualsAndHashCode(callSuper = true)
public class Pet extends Model<Pet> {
    //宠物ID
    private Long petId;
    //关联用户ID
    private Long userId;
    //关联设备ID
    private Long deviceId;

    //分组id
    private Long groupId;
    //绑定时间
    private LocalDateTime bindTime;
    //解绑时间
    private Date unBindTime;
    //宠物类型（1-人 2-猫 3-狗）
    private Integer petType;
    //宠物(人)名称
    private String petName;
    //品种
    private String breed;
    //性别(0-未知,1-男/公,2-女/母)
    private Integer gender;
    //毛色
    private String color;
    //头像URL
    private String avatar;
    //描述信息
    private String description;
    //数据状态1有效0无效
    private Integer dataStatus;
    //创建时间
    private Date createTime;

    //是否收藏
    private Integer isCollection;

    //创建人
    private String createBy;
    //更新时间
    private Date updateTime;
    //更新人
    private String updateBy;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.petId;
    }
}

